import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import ElementPlus from "element-plus"; // 导入 Element Plus 组件库
import "element-plus/dist/index.css"; // 导入 Element Plus 样式文件
import "./assets/font_kct890ag5rs/iconfont.css";
import { Search } from "@element-plus/icons-vue";
import moment from "moment"; // 引入 moment.js
// import axios from "axios";

const app = createApp(App);
// app.config.globalProperties.$http = axios.create({
//   baseURL: "http://localhost:8234",
// });
// 将 moment 挂载到应用实例上
app.config.globalProperties.$moment = moment;

app
  .use(router)
  .use(store)
  .use(ElementPlus) // 注册 Element Plus 组件库
  .component("SearchIcon", Search) // 全局注册 Search 图标组件
  .mount("#app");
